<!-- 广告管理 -->
<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
$("#<?php echo $id;?>").DataSource({url:'setting/get_advertise_list?type=<?php echo $type?>',
	fields:[[
		{field:'code_name',title:'代号 ',      width:110, align:'center',sortable:false},
		{field:'advertise_name',title:'广告名 ',      width:110, align:'center',sortable:true},	
		{field:'img',title:'图片	',      width:300, align:'center',sortable:true},
		{field:'img_title',title:'图片标题',   width:110, align:'center', sortable:true},
		{field:'sort',title:'排序',   width:110, align:'center', sortable:true},
		{field:'status',title:'状态',   width:110, align:'center', sortable:true},
		{field:'join_time',title:'添加时间',   width:200, align:'center', sortable:true},	
		{field:'revise_time',title:'修改时间', width:200,align:'center' , sortable:true},	
		{field:'op',      title:'操作', width:200,align:'center',sortable:false,formatter:function(v,r){
			return '<a herf="#" class="btn btn-danger btn-xs" onclick=Core.dialog(\'广告更新\',\'setting/advertise_con_set/'+r.id+'\',function(){},true,true,"","","ad_manage");>修改</a>&nbsp;&nbsp;'+
			'<a herf="#" class="btn btn-danger btn-xs" onclick=Core.confirm("<?php echo $id;?>",1,"asd","确定停用该会员使用?")>停用</a>&nbsp;&nbsp;';
		}}
    ]], 
	checkbox:false,
   	footer:true,
	pagination:{layout:['links','last'],showRefresh:false},
	success:function(){
		$('#<?php echo $id?>').pagination({layout:['links','last'],showRefresh:false});
	}
});
</script>

